Edit
Report post Feedback

What is WebSocket API?

WebSocket API allows placing orders, canceling orders, etc. through a WebSocket connection. WebSocket API is a separate service from WebSocket Market Data streams. I.e., placing orders and listening to market data requires two separate WebSocket connections. WebSocket API is subject to the same Filter and Rate Limit rules as REST API.

How to interact with WebSockets?

There are 2 ways to interact with websockets. with ThreadedWebsocketManager or BinanceSocketManager. ThreadedWebsocketManager does not require asyncio programming, while BinanceSocketManager does. ThreadedWebsocketManager function begin with start_, e.g start_ticker_socket while BinanceSocketManager is simply ticker_socket.

Does Binance support WebSocket streams?

The binance package only supports websocket streams, but REST API (either directly or using a different package) will help you achieve your goal more easily. You can have two functions - each for retrieving price form the exchange, and then compare the price from the different sources.

What is the difference between threadedwebsocketmanager and binancesocketmanager?

ThreadedWebsocketManager does not require asyncio programming, while BinanceSocketManager does. ThreadedWebsocketManager function begin with start_, e.g start_ticker_socket while BinanceSocketManager is simply ticker_socket. Multiple socket connections can be made through either manager.

The World's Leading Crypto Trading Platform

Get my welcome gifts